
Page({
  data: {
    classLevelList: []
  },
  classListFn: function (index) {
    let _this=this
    wx.request({
      url: 'http://localhost:3000/classList',
      method: 'GET',
      success: function (res) {
        _this.setData({ classLevelList: res.data.data['level'+`${Number(index)+1}`] })
      }
    })
  },
  onLoad: function (option) {
    console.log(option)
    this.classListFn(option.Id)
  },
  
})
